import requests

url = 'http://192.168.196.128/apitest/login/'
args = {'username': 'admin', 'password': '123456'}
res = requests.post(url, args)
# print(res.headers)
# print(res.request.headers)
print(res.text)
print(res.json())
print(res.headers['Content-Type'])  # 收到结果的类型——响应类型
print(res.request.headers['Content-Type'])  # 发送数据的类型，请求数据的类型
